package com.rc.saas.mini.model.ugs;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UgsMemberLevelRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UgsMemberLevelRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLevelRecordIdIsNull() {
            addCriterion("level_record_id is null");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdIsNotNull() {
            addCriterion("level_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdEqualTo(Long value) {
            addCriterion("level_record_id =", value, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdNotEqualTo(Long value) {
            addCriterion("level_record_id <>", value, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdGreaterThan(Long value) {
            addCriterion("level_record_id >", value, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdGreaterThanOrEqualTo(Long value) {
            addCriterion("level_record_id >=", value, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdLessThan(Long value) {
            addCriterion("level_record_id <", value, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdLessThanOrEqualTo(Long value) {
            addCriterion("level_record_id <=", value, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdIn(List<Long> values) {
            addCriterion("level_record_id in", values, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdNotIn(List<Long> values) {
            addCriterion("level_record_id not in", values, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdBetween(Long value1, Long value2) {
            addCriterion("level_record_id between", value1, value2, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andLevelRecordIdNotBetween(Long value1, Long value2) {
            addCriterion("level_record_id not between", value1, value2, "levelRecordId");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNull() {
            addCriterion("tenant_code is null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNotNull() {
            addCriterion("tenant_code is not null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeEqualTo(String value) {
            addCriterion("tenant_code =", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotEqualTo(String value) {
            addCriterion("tenant_code <>", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThan(String value) {
            addCriterion("tenant_code >", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_code >=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThan(String value) {
            addCriterion("tenant_code <", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThanOrEqualTo(String value) {
            addCriterion("tenant_code <=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLike(String value) {
            addCriterion("tenant_code like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotLike(String value) {
            addCriterion("tenant_code not like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIn(List<String> values) {
            addCriterion("tenant_code in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotIn(List<String> values) {
            addCriterion("tenant_code not in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeBetween(String value1, String value2) {
            addCriterion("tenant_code between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotBetween(String value1, String value2) {
            addCriterion("tenant_code not between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Long value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Long value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Long value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Long value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Long> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Long> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Long value1, Long value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andRecordTypeIsNull() {
            addCriterion("record_type is null");
            return (Criteria) this;
        }

        public Criteria andRecordTypeIsNotNull() {
            addCriterion("record_type is not null");
            return (Criteria) this;
        }

        public Criteria andRecordTypeEqualTo(String value) {
            addCriterion("record_type =", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeNotEqualTo(String value) {
            addCriterion("record_type <>", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeGreaterThan(String value) {
            addCriterion("record_type >", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeGreaterThanOrEqualTo(String value) {
            addCriterion("record_type >=", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeLessThan(String value) {
            addCriterion("record_type <", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeLessThanOrEqualTo(String value) {
            addCriterion("record_type <=", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeLike(String value) {
            addCriterion("record_type like", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeNotLike(String value) {
            addCriterion("record_type not like", value, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeIn(List<String> values) {
            addCriterion("record_type in", values, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeNotIn(List<String> values) {
            addCriterion("record_type not in", values, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeBetween(String value1, String value2) {
            addCriterion("record_type between", value1, value2, "recordType");
            return (Criteria) this;
        }

        public Criteria andRecordTypeNotBetween(String value1, String value2) {
            addCriterion("record_type not between", value1, value2, "recordType");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdIsNull() {
            addCriterion("growing_type_id is null");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdIsNotNull() {
            addCriterion("growing_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdEqualTo(Long value) {
            addCriterion("growing_type_id =", value, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdNotEqualTo(Long value) {
            addCriterion("growing_type_id <>", value, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdGreaterThan(Long value) {
            addCriterion("growing_type_id >", value, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("growing_type_id >=", value, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdLessThan(Long value) {
            addCriterion("growing_type_id <", value, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdLessThanOrEqualTo(Long value) {
            addCriterion("growing_type_id <=", value, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdIn(List<Long> values) {
            addCriterion("growing_type_id in", values, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdNotIn(List<Long> values) {
            addCriterion("growing_type_id not in", values, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdBetween(Long value1, Long value2) {
            addCriterion("growing_type_id between", value1, value2, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andGrowingTypeIdNotBetween(Long value1, Long value2) {
            addCriterion("growing_type_id not between", value1, value2, "growingTypeId");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeIsNull() {
            addCriterion("before_level_type is null");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeIsNotNull() {
            addCriterion("before_level_type is not null");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeEqualTo(String value) {
            addCriterion("before_level_type =", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeNotEqualTo(String value) {
            addCriterion("before_level_type <>", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeGreaterThan(String value) {
            addCriterion("before_level_type >", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeGreaterThanOrEqualTo(String value) {
            addCriterion("before_level_type >=", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeLessThan(String value) {
            addCriterion("before_level_type <", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeLessThanOrEqualTo(String value) {
            addCriterion("before_level_type <=", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeLike(String value) {
            addCriterion("before_level_type like", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeNotLike(String value) {
            addCriterion("before_level_type not like", value, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeIn(List<String> values) {
            addCriterion("before_level_type in", values, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeNotIn(List<String> values) {
            addCriterion("before_level_type not in", values, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeBetween(String value1, String value2) {
            addCriterion("before_level_type between", value1, value2, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeLevelTypeNotBetween(String value1, String value2) {
            addCriterion("before_level_type not between", value1, value2, "beforeLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeIsNull() {
            addCriterion("after_level_type is null");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeIsNotNull() {
            addCriterion("after_level_type is not null");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeEqualTo(String value) {
            addCriterion("after_level_type =", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeNotEqualTo(String value) {
            addCriterion("after_level_type <>", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeGreaterThan(String value) {
            addCriterion("after_level_type >", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeGreaterThanOrEqualTo(String value) {
            addCriterion("after_level_type >=", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeLessThan(String value) {
            addCriterion("after_level_type <", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeLessThanOrEqualTo(String value) {
            addCriterion("after_level_type <=", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeLike(String value) {
            addCriterion("after_level_type like", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeNotLike(String value) {
            addCriterion("after_level_type not like", value, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeIn(List<String> values) {
            addCriterion("after_level_type in", values, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeNotIn(List<String> values) {
            addCriterion("after_level_type not in", values, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeBetween(String value1, String value2) {
            addCriterion("after_level_type between", value1, value2, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andAfterLevelTypeNotBetween(String value1, String value2) {
            addCriterion("after_level_type not between", value1, value2, "afterLevelType");
            return (Criteria) this;
        }

        public Criteria andBeforeValueIsNull() {
            addCriterion("before_value is null");
            return (Criteria) this;
        }

        public Criteria andBeforeValueIsNotNull() {
            addCriterion("before_value is not null");
            return (Criteria) this;
        }

        public Criteria andBeforeValueEqualTo(Integer value) {
            addCriterion("before_value =", value, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueNotEqualTo(Integer value) {
            addCriterion("before_value <>", value, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueGreaterThan(Integer value) {
            addCriterion("before_value >", value, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("before_value >=", value, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueLessThan(Integer value) {
            addCriterion("before_value <", value, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueLessThanOrEqualTo(Integer value) {
            addCriterion("before_value <=", value, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueIn(List<Integer> values) {
            addCriterion("before_value in", values, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueNotIn(List<Integer> values) {
            addCriterion("before_value not in", values, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueBetween(Integer value1, Integer value2) {
            addCriterion("before_value between", value1, value2, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andBeforeValueNotBetween(Integer value1, Integer value2) {
            addCriterion("before_value not between", value1, value2, "beforeValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueIsNull() {
            addCriterion("after_value is null");
            return (Criteria) this;
        }

        public Criteria andAfterValueIsNotNull() {
            addCriterion("after_value is not null");
            return (Criteria) this;
        }

        public Criteria andAfterValueEqualTo(Integer value) {
            addCriterion("after_value =", value, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueNotEqualTo(Integer value) {
            addCriterion("after_value <>", value, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueGreaterThan(Integer value) {
            addCriterion("after_value >", value, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("after_value >=", value, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueLessThan(Integer value) {
            addCriterion("after_value <", value, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueLessThanOrEqualTo(Integer value) {
            addCriterion("after_value <=", value, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueIn(List<Integer> values) {
            addCriterion("after_value in", values, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueNotIn(List<Integer> values) {
            addCriterion("after_value not in", values, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueBetween(Integer value1, Integer value2) {
            addCriterion("after_value between", value1, value2, "afterValue");
            return (Criteria) this;
        }

        public Criteria andAfterValueNotBetween(Integer value1, Integer value2) {
            addCriterion("after_value not between", value1, value2, "afterValue");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeIsNull() {
            addCriterion("before_time is null");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeIsNotNull() {
            addCriterion("before_time is not null");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeEqualTo(Date value) {
            addCriterion("before_time =", value, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeNotEqualTo(Date value) {
            addCriterion("before_time <>", value, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeGreaterThan(Date value) {
            addCriterion("before_time >", value, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("before_time >=", value, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeLessThan(Date value) {
            addCriterion("before_time <", value, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeLessThanOrEqualTo(Date value) {
            addCriterion("before_time <=", value, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeIn(List<Date> values) {
            addCriterion("before_time in", values, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeNotIn(List<Date> values) {
            addCriterion("before_time not in", values, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeBetween(Date value1, Date value2) {
            addCriterion("before_time between", value1, value2, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andBeforeTimeNotBetween(Date value1, Date value2) {
            addCriterion("before_time not between", value1, value2, "beforeTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeIsNull() {
            addCriterion("after_time is null");
            return (Criteria) this;
        }

        public Criteria andAfterTimeIsNotNull() {
            addCriterion("after_time is not null");
            return (Criteria) this;
        }

        public Criteria andAfterTimeEqualTo(Date value) {
            addCriterion("after_time =", value, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeNotEqualTo(Date value) {
            addCriterion("after_time <>", value, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeGreaterThan(Date value) {
            addCriterion("after_time >", value, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("after_time >=", value, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeLessThan(Date value) {
            addCriterion("after_time <", value, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeLessThanOrEqualTo(Date value) {
            addCriterion("after_time <=", value, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeIn(List<Date> values) {
            addCriterion("after_time in", values, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeNotIn(List<Date> values) {
            addCriterion("after_time not in", values, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeBetween(Date value1, Date value2) {
            addCriterion("after_time between", value1, value2, "afterTime");
            return (Criteria) this;
        }

        public Criteria andAfterTimeNotBetween(Date value1, Date value2) {
            addCriterion("after_time not between", value1, value2, "afterTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNull() {
            addCriterion("last_updated_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNotNull() {
            addCriterion("last_updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByEqualTo(String value) {
            addCriterion("last_updated_by =", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotEqualTo(String value) {
            addCriterion("last_updated_by <>", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThan(String value) {
            addCriterion("last_updated_by >", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("last_updated_by >=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThan(String value) {
            addCriterion("last_updated_by <", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("last_updated_by <=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLike(String value) {
            addCriterion("last_updated_by like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotLike(String value) {
            addCriterion("last_updated_by not like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIn(List<String> values) {
            addCriterion("last_updated_by in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotIn(List<String> values) {
            addCriterion("last_updated_by not in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByBetween(String value1, String value2) {
            addCriterion("last_updated_by between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotBetween(String value1, String value2) {
            addCriterion("last_updated_by not between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNull() {
            addCriterion("last_updated_time is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNotNull() {
            addCriterion("last_updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeEqualTo(Date value) {
            addCriterion("last_updated_time =", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotEqualTo(Date value) {
            addCriterion("last_updated_time <>", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThan(Date value) {
            addCriterion("last_updated_time >", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_updated_time >=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThan(Date value) {
            addCriterion("last_updated_time <", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_updated_time <=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIn(List<Date> values) {
            addCriterion("last_updated_time in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotIn(List<Date> values) {
            addCriterion("last_updated_time not in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("last_updated_time between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_updated_time not between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}